package com.dly.blog.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class AdminUserVO {

    /**
     * 用户id
     */
    @Schema(description = "主键id")
    private String id;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户账号")
    private String userAccount;

    /**
     * 用户次数
     */
    @Schema(description = "次数")
    private Integer frequency;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String userEmail;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;


    @Schema(description = "职业")
    private String career;

    @Schema(description = "备注")
    private String remark;

    /**
     * 角色信息
     */
    @Schema(description = "角色权限")
    private List<String> roles;

    @Schema(description = "按钮权限")
    private List<String> buttons;
}
